package com.px.chapter_Nov_1;

import java.util.Scanner;

public class text1 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入一个4位整数");
        int getnum=scanner.nextInt();
        int getnum_1=getnum%10;
        int getnum_4=getnum/1000;
        int getnum_3=(getnum-getnum_4*1000)/100;
        int getnum_2=(getnum-getnum_4*1000-getnum_3*100)/10;
        System.out.println("千位"+getnum_4+'\t'+"百位"+getnum_3+'\t'+"十位"+getnum_2+'\t'+"个位"+getnum_1+'\t');
    }
}
